<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="utf-8">
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />


<script type="text/javascript" src="${path}/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${path}/js/H-ui.js"></script>
<link href="${path}/css/H-ui.css" rel="stylesheet" type="text/css" />
<link href="${path}/css/H-ui.login.css" rel="stylesheet" type="text/css" />
<link href="${path}/css/font/font-awesome.min.css" rel="stylesheet"
	type="text/css" />
	
<title>用户登录</title>

</head>
<body>
	<input type="hidden" id="TenantId" name="TenantId" value="" />
<div class="header"></div>
<div class="loginWraper">
  <div id="loginform" class="loginBox">
    <form class="form form-horizontal" action="${path}/dologin" method="post">
      <div class="row cl">
        <label class="form-label col-3">账号</label>
        <div class="formControls col-8">
          <input id="" name="account" type="text" placeholder="账户" class="input-text size-L">
        </div>
      </div>
      <div class="row cl">
        <label class="form-label col-3">密码</label>
        <div class="formControls col-8">
          <input id="" name="password" type="password" placeholder="密码" class="input-text size-L">
        </div>
      </div>
       <div class="row cl">
        <label class="form-label col-3">用户类型</label>
        <div class="formControls col-8">
        <c:if test="${type eq 1 }">
          	<label><input checked="checked" type="radio" name="type" value="1" >学生</label>
          	<label><input type="radio" name="type" value="2" >教练</label>
          	<label><input type="radio" name="type" value="3" >管理员</label>
        </c:if>
         <c:if test="${type eq 2 }">
          	<label><input  type="radio" name="type" value="1" >学生</label>
          	<label><input checked="checked" type="radio" name="type" value="2" >教练</label>
          	<label><input type="radio" name="type" value="3" >管理员</label>
        </c:if>
         <c:if test="${type eq 3 }">
          	<label><input  type="radio" name="type" value="1" >学生</label>
          	<label><input type="radio" name="type" value="2" >教练</label>
          	<label><input  checked="checked" type="radio" name="type" value="3" >管理员</label>
        </c:if>
        <c:if test="${type == null }">
          	<label><input checked="checked" type="radio" name="type" value="1" >学生</label>
          	<label><input type="radio" name="type" value="2" >教练</label>
          	<label><input   type="radio" name="type" value="3" >管理员</label>
        </c:if>
        </div>
      </div>
      <div class="row">
        <div class="formControls col-8 col-offset-3">
          <input name="" type="submit" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;">
          <input name="" type="reset" class="btn btn-default radius size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
          <a href="#">返回首页</a>
        </div>
      </div>
      <div class="row">
        <div class="formControls col-8 col-offset-3">
         	<p class="c-red"><c:out value="${err }"></c:out></p>
        </div>
      </div>
    </form>
  </div>
</div>
			

</body>
</html>
